use contract_sdk_rust::sim_context;
use contract_sdk_rust::sim_context::*;
use contract_sdk_orm::RustOrm;
use contract_sdk_orm::utils::Condition;
use serde::{Deserialize, Serialize};


#[derive(RustOrm, Serialize, Deserialize)]
#[primary_key="file_hash"]
pub struct Fact {
    #[column(length="255",comment="文件KEY",nullable="false")]
    pub file_hash: String,
    #[column(length="255",comment="文件名",nullable="false")]
    pub file_name: String,
    #[column(length="12",comment="创建时间",nullable="false")]
    pub time: i32,
}